package com.bsoft.gol.hcs.clinical.bean.response;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by lxy on 2019/11/6.
 */
@XmlRootElement(name = "RecipeList")
public class SavePrescriptionInformationResponse implements Serializable {

    private String prescriptionId;

    private String onlinePrescriptionRecordId;

    private String prescriptionNumber;

    private String totalPrice;

    private Date creationTime;

    private Date expirationDate;

    private String url;//处方中心 警示信息地址信息

    private List<InnerPrescriptionDrug> PrescriptionDrugs;

    @XmlElementWrapper(name = "PrescriptionDrugs")
    @XmlElement(name = "PrescriptionDrug")
    public List<InnerPrescriptionDrug> getPrescriptionDrugs() {
        return PrescriptionDrugs;
    }

    public void setPrescriptionDrugs(List<InnerPrescriptionDrug> prescriptionDrugs) {
        PrescriptionDrugs = prescriptionDrugs;
    }

    @XmlElement(name = "OnlinePrescriptionRecordId")
    public String getOnlinePrescriptionRecordId() {
        return onlinePrescriptionRecordId;
    }

    public void setOnlinePrescriptionRecordId(String onlinePrescriptionRecordId) {
        this.onlinePrescriptionRecordId = onlinePrescriptionRecordId;
    }

    @XmlElement(name = "PrescriptionRecordId")
    public String getPrescriptionId() {
        return prescriptionId;
    }

    public void setPrescriptionId(String prescriptionId) {
        this.prescriptionId = prescriptionId;
    }

    @XmlElement(name = "RecipeNumber")
    public String getPrescriptionNumber() {
        return prescriptionNumber;
    }

    public void setPrescriptionNumber(String prescriptionNumber) {
        this.prescriptionNumber = prescriptionNumber;
    }

    @XmlElement(name = "PrescriptionDate")
    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    @XmlElement(name = "ExpirationDate")
    public Date getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public static class InnerPrescriptionDrug {
        private String onlinePrescriptionDetailId;
        private String prescriptionDetailId;

        @XmlElement(name = "OnlinePrescriptionDetailId")
        public String getOnlinePrescriptionDetailId() {
            return onlinePrescriptionDetailId;
        }

        public void setOnlinePrescriptionDetailId(String onlinePrescriptionDetailId) {
            this.onlinePrescriptionDetailId = onlinePrescriptionDetailId;
        }

        @XmlElement(name = "PrescriptionDetailId")
        public String getPrescriptionDetailId() {
            return prescriptionDetailId;
        }

        public void setPrescriptionDetailId(String prescriptionDetailId) {
            this.prescriptionDetailId = prescriptionDetailId;
        }
    }
}
